package com.cskaoyan.catmall.controller.wx;

import com.cskaoyan.catmall.model.bo.FeedbackBo;
import com.cskaoyan.catmall.model.pojo.MarketFeedback;
import com.cskaoyan.catmall.model.vo.BaseRespVo;
import com.cskaoyan.catmall.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * wx/feedback/submit
 * 创建日期: 2022/01/11 21:40
 *
 * @author ghr
 */
@RestController
@RequestMapping("wx/feedback")
public class WxFeedbackController {
    @Autowired
    FeedbackService feedbackService;

    @PostMapping("submit")
    public BaseRespVo submit(@RequestBody FeedbackBo feedbackBo) {
        feedbackService.insert(feedbackBo);
        return BaseRespVo.ok();
    }
}